package health.lm.com.shop.presenter;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.network.callback.SimpleCallBack;
import health.lm.com.shop.activity.HLCompanyDynamicActivity;
import health.lm.com.shop.entity.DynamicCategoryEntity;
import health.lm.com.shop.model.MallModel;

/**
 * @author GQI
 * description: 商会动态
 * @date :2019-08-12 15:16
 */
public class HLCompanyDynamicPresenter extends XPresent<HLCompanyDynamicActivity> {
    public void getColumn() {
        MallModel.getInstance().getDynamicCategoryData(new SimpleCallBack<DynamicCategoryEntity>() {
            @Override
            public void onSuccess(DynamicCategoryEntity pDynamicCategoryEntity) {
                if (hasV()) getV().getColumn(pDynamicCategoryEntity.getCategory_list());
            }
        });
    }
}
